module.exports = {
	publicPath: "./",
	runtimeCompiler: true,
	chainWebpack: config => {
		config.plugin("html").tap(args => {
			args[0].title = ""
			return args
		})
	},
	devServer: {
		proxy: {
			"/": {
				 target: "https://yanfengai.com", // 跨域请求的后台地址
				changeOrigin: true,
				pathRewrite: {
					"^/": ""
				}
			}
		}
	},
	configureWebpack:{
		resolve: {
				alias: {
					"@assets": "@/assets"
				}
			},
	        module: {
	            rules: [
	                {
	                    test: /\.mjs$/,
	                    include: /node_modules/,
	                    type: "javascript/auto"
	                },
	            ]
	        }
	    },

	css: {
		loaderOptions: {
			scss: {
				additionalData: `
					@import "@/scss/theme.scss";
					@import "@/scss/common.scss";
				`
			}
		}
	}
}
